<!DOCTYPE html>
<html>
<title>登陆页面</title>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</head>
<body>

<form>
    <table>
        <tr>
            <td colspan = 2>登陆界面</td>
        </tr>
        <tr>
            <td>账号：</td>
            <td><input type = text name = user size = 16 id="username" value="test"/></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type = password name = password size = 16 id="password" value="test"/></td>
        </tr>
        <tr>
            <td><input type = button value = submit id="login"></td>
        </tr>
    </table>
</form>
<script>
$("#login").click(function () {
    var username = $("#username").val();
    var password = $("#password").val();
    $.post("/dologin", {username: username, password: password}, function (data) {
        alert(data)
    });
    
});
</script>
</body>
</html>
